package com.originskyseed.platform.job.jobhandler.homepagecache;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import com.originskyseed.platform.core.job.biz.model.ReturnT;
import com.originskyseed.platform.core.job.handler.IJobHandler;
import com.originskyseed.platform.core.job.handler.annotation.JobHandler;
import com.originskyseed.platform.core.job.log.JobLogger;

/**
 * 更新首页统计缓存
 * 
 * @Author: twh @date: 2021/8/16
 */

@Component
@JobHandler(value = "homePageCacheHandler")
public class HomePageCacheHandler extends IJobHandler {

	//@DubboReference
	//private IInsertHomePageCacheService insertHomePageCacheService;


	@Override
	public ReturnT<String> execute(String tenantCode) throws Exception {
		try {
			//this.insertHomePageCacheService.insertHomePageCache(tenantCode);
		} catch (Exception e) {
			JobLogger.log("统计首页数据：" + e.getMessage());
			return FAIL;
		}
		return SUCCESS;
	}



}
